class OutRecord < ActiveRecord::Base
  belongs_to :reader
  belongs_to :book
  
  def validate
    if return_date < date
      errors.add("归还日期小于借阅日期")
    end
  end
end